package sys

import "github.com/vueadmin/utils/conv"

type Application struct {
	AppId           uint         `gorm:"primaryKey" json:"app_id"`
	ApplicationName string       `json:"application_name"`
	AppDir          string       `json:"app_dir"`
	AppType         int8         `json:"app_type"`
	Port            string       `json:"port" validate:"required,unique"  table:"cd_application:AppId"`
	Limit           string       `json:"limit"`
	ProjectId       string       `json:"project_id"`
	Expand          conv.Strings `json:"expand"`
}

func (Application) TableName() string {
	return "cd_application"
}
